<template>
  <view class="page">
    <view class="title">{{ busData.path }}</view>
    <view class="busNum">
      <view class="box-l">线路站数</view>
      <view class="box-r">{{ busData.pathNum }}</view>
    </view>
    <view class="upPath">
      <view class="box-l">上行线路</view>
      <view class="box-r">{{ busData.upPath }}</view>
    </view>
    <view class="downPath">
      <view class="box-l">下行线路</view>
      <view class="box-r">{{ busData.downPath }}</view>
    </view>
    <view class="remark">
      <view class="box-l">线路备注</view>
      <view class="box-r">{{ busData.remark }}</view>
    </view>
  </view>
</template>

<script>
import "./busDetails.scss";
import Taro from "@tarojs/taro";

export default {
  data() {
    return {
      busData: {},
    };
  },
  created() {},
  onLoad(option) {
    console.log(option.id);
    let that = this;
    Taro.getStorage({
      key: "busList",
      success: function (res) {
        console.log(res.data[option.id]);
        that.busData = res.data[option.id];
      },
    });
  },
  methods: {
    getUrl() {},
  },
};
</script>